<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
		<meta content="yes" name="apple-mobile-web-app-capable" />
		<meta content="black" name="apple-mobile-web-app-status-bar-style" />
		<meta content="telephone=no" name="format-detection">
		<title>启程考驾照</title>
		<link rel="stylesheet" href="../css/reset.css" />
		<link rel="stylesheet" href="css/pay_success.css" />
	</head>
	<body>
		<div class="success">
			<div class="success_icon">
				<img src="../images/logo.png" />
			</div>
			<div class="success_title">恭喜您！</div>
			<div class="success_txt">
				<p>已获得启程考驾照VIP服务，快去下载客户端吧</p>
			</div>
		</div>
		<div class="down_load"><span>考试并不难，技巧是关键</span>，<a>请点击下载</a></div>
		<div class="down_load_ts"><img src="../images/down_load_ts.png" /><div class="ok">我知道了</div></div>
		<script type="text/javascript" src="../js/jquery-1.10.1.min.js" ></script>
		<script>
			$(function(){
				//页面尺寸自适应
				size_reset();
				$(window).resize(function(){
					size_reset();
				})
				function size_reset(){
					$(".success").css({
						"min-height":$(window).height()-$(".down_load").innerHeight(),
					})
					$(".success_icon").css({
						"padding-top":$(window).height()*0.12,
						"padding-bottom":$(window).height()*0.1
					})
				}
				
				$(".down_load_ts .ok").click(function(){
					$(".down_load_ts").hide();
				})
				//下载链接
				$(".down_load").click(function(){
					if(navigator.userAgent.indexOf("MicroMessenger")!=-1||navigator.userAgent.indexOf("Mobile MQQBrowser")!=-1){
			        	$(".down_load_ts").show()
			        	return false;
			        }
					//ios
					if(navigator.userAgent.indexOf("iPhone")!=-1||navigator.userAgent.indexOf("iPad")!=-1||navigator.userAgent.indexOf("iPod")!=-1){
			        	location.href="https://itunes.apple.com/cn/app/启程考驾照/id1279692444?l=zh&amp;amp;ls=1&amp;amp;mt=8"
			        }
					//安卓
			        else{
			        	//其它方式打开
			        	location.href="http://app.qcjkjg.com/download"
			        }
				})
					
			})
		</script>
	</body>
</html>
